/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is dual-licensed under either the MIT license found in the
 * LICENSE-MIT file in the root directory of this source tree or the Apache
 * License, Version 2.0 found in the LICENSE-APACHE file in the root directory
 * of this source tree. You may select, at your option, one of the
 * above-listed licenses.
 */

* {
    box-sizing: border-box;
}

:root {
    --background: #fafafa;
    --content: #eee;
    --border: #ccc;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--background);
    padding: 15px;
    margin: 0px;
}

#target {
    width: calc(100% - 225px);
    margin-bottom: 15px;
    font-family: monospace;
    padding: 4px;
}

#target, select {
    outline-color: rgb(75, 98, 229);
    border: 1px solid var(--border);
    border-radius: 4px;
}

select {
    padding: 2px;
}

#target:focus, select:focus {
    background-color: rgb(232, 235, 255);
}

/* Tab CSS based on code from https://codepen.io/goschevski/pen/qHwde */
#tabs {
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--border);
}

#tabs > button.active-tab {
    border: 1px solid var(--border);
    border-bottom: none;
    position: relative;
    color: black;
    background-color: var(--content) !important;
}

#tabs > button:hover {
    background-color: var(--border);
}

#tabs > .active-tab:after {
    width: 100%;
    height: 2px;
    position: absolute;
    content: "";
    bottom: -0.1em;
    left: 0;
    background: var(--content);
}

#tabs > button {
    display: inline-block;
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    border-radius: 5px 5px 0px 0px;
    background-color: transparent;
}

#tabs > button:first-child {
    margin-left: 10px;
}

#output {
    font-family: sans-serif;
    font-size: 10pt;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-top: none;
    background-color: var(--content);
    overflow: auto;
    height: calc(100% - 70px);
    white-space: pre-wrap;
}

#output a {
    color: rgb(47, 47, 187);
    cursor: pointer;
}
#output a:hover {
    text-decoration: underline;
}
